Repository navigation
feat(desktop, desktop-api): the app catches up with the CLI — Chat, Clusters, Sandboxes, Early access and Studio serving - #1953
Open
jonathan308 wants to merge 94 commits into
Open
jonathan308 wants to merge 94 commits into
jonathan308 wants to merge 94 commits into
Conversation
…boxes, waitlists, chat and local serving The app's sidebar gains Chat, Clusters, Sandboxes and Early access. Each feature gets its own shared types (shared/cluster.ts, sandbox.ts, waitlists.ts, chat.ts, localServing.ts), its own preview module (renderer/preview/*) and its own main-process relay (main/chat.ts, main/clusterSession.ts), so the pages can be built side by side. The native resources `cluster`, `sandbox`, `sandbox-logs` and `waitlists` are allowed through the main process; `useResource` reads a resource while its page is shown. Sandbox approval links open only on Darkbloom hosts over https. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ly me and Both `[local] mode` is saved by each mode flag and later starts follow it, so the app needs `--network` to move a Mac back to the network alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…apes `ClusterSessionRelay` now reaches the native API's session routes: `current()` reads `cluster/session` (null when none ran), `start()` posts a `ClusterSessionStart` rebuilt from checked fields (kind `setup` or `local`; for `local` only, a model id that can't be a flag or a path and a `--bind` of `localhost` or a numeric IPv4/IPv6 address), and `answer()` posts a choice, a key or cancel. Replies are checked before they reach the renderer. While the renderer watches, one reference-counted stream of `cluster/session/events` publishes each `event: cluster-session` frame's session; it opens again when it ends or goes quiet, backs off on failures, drops an oversized stream, and catches up with the current session when it opens unless a frame came first. `Backend.openClusterSessionEvents` opens it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`ChatRelay` (main process) lists the models this Mac's local API serves and streams answers from it. It calls only a loopback http base URL from the native snapshot (127.0.0.1, localhost, [::1]), reads the key through `endpoint-key` only when the endpoint is authenticated and never hands it to the renderer, and caps each request at 200 messages and 400,000 characters. `ChatModel` now follows the local router's list: `supported_features` says which models reason (each of those takes all seven reasoning efforts), `owned_by` where each runs, plus context and output limits. Streams parse `reasoning_content` (or `reasoning`, never both), `content`, the finish reason, usage and the local API's mid-answer failure frame; refusals show the local API's own message, such as a busy Mac's 503. At most two answers stream at once; cancel ends with `finish_reason: cancelled`, reset ends every stream silently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Early access lists every waitlist the coordinator offers, in its order, and where the account stands in the CLI's words: not joined with Join the waitlist, #<n> in line with the day it joined, approved since <day> with Open for a feature that has a page here (Clusters, Sandboxes) or its start command to copy, and revoked on <day>. A list it can't show says why: link this Mac (the app's own link flow and code), nothing to join on a coordinator without waitlists, or the runtime's reason with Try again. A runtime without the `waitlists` capability gets a one-line note and is never asked. `useWaitlist(backend, feature)` keeps its fields and adds `problem` (a join's refusal in the runtime's words) and `supported`; one read of `waitlists` serves every hook and card on a page. `WaitlistCard` has a compact one-row variant for the top of Clusters and Sandboxes. The preview adds the `waitlists` capability (`&waitlists=unsupported` drops it), `&waitlists=more` and `&waitlist-join=fail`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k or Both, me first Studio (This Mac > Studio) reads `Snapshot.local` from a runtime with `local_serving` and offers the start question's three answers in its words, the saved one marked, applied through `start` (`local`, `network` or `endpoint`) with the models serving now, and says that applying restarts serving. Both, me first adds me first and its minutes (`local_settings`). Where your requests go when this Mac can't take them saves through `route`; the account API key goes once through `route_key`, cleared as it is sent and never shown. Tool setup runs `tool_setup` where the runtime offers it, else shows `darkbloom --opencode` and `--hermes` to copy. Connection details add the port and address from `Snapshot.local`. A runtime without `local_serving` keeps today's page, with one line on what a newer CLI adds. The page is split into features/studio/* with a CSS module; the key reveal, copy and curl example keep their behaviour and tests. The development preview serves a `Snapshot.local` fixture (`&local=only-me|network|both|paused|unsupported`) and simulates the actions in the CLI's words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ack`) From a runtime with `update_rollback`, Updates offers **Return to the previous release**, asked first as `darkbloom update --rollback` asks: this Mac returns to the release kept for rollback once its requests finish, and automatic updates then skip the installed one. The runtime's own refusal shows when no release is kept. Older runtimes show nothing new. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gelog The developer guide's `## Local API and serving modes` says what each Studio section shows and sends (`start` with `local`/`network`/`endpoint`, `local_settings`, `route`, `route_key`, `tool_setup`), how the account key is handled, what a paired Mac and an older runtime see, the tests and the preview links. Updates presentation adds **Return to the previous release**. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The developer guide's Early access section covers how the page reads the `waitlists` resource (capability, one shared read, what reads again), the standing words, joining, the unavailable states, the hook and card that Clusters and Sandboxes use, and the preview links. A changelog fragment describes the page for users. Join the waitlist and Open are described by their card's title, so a page of cards doesn't read as a row of identical buttons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Sandboxes page sets up, follows and manages Darkbloom Sandbox, the add-on that runs approved GitHub Actions jobs in Linux and macOS VMs on this Mac, in the CLI's own words (`darkbloom sandbox`). - Without the add-on: what it is in two lines (each job pays its price minus a 10% fee into the Darkbloom balance; inference pauses while a job runs), what this Mac needs and what loses jobs, and setup once the account may use it (approved from the `sandbox` waitlist, or a coordinator without one): jobs at a time (automatic, or Linux 0-16 and macOS 0-2, never both 0), an optional work disk, and waiting for the images. A runtime without the `waitlists` capability leaves the waitlist to the CLI's own check. - While setup runs: the installer's stages, the one browser approval (code, Copy code, Open approval page), the waitlist and background notes, Cancel when the runtime allows it; an ended setup says what the installer's exit status means (2, 3, 4, stopped) until dismissed. - Installed: the state as the headline with what it means for inference, free slots as meters, jobs, images, work disks, version, host and update check; Open console, Pause (asks) and Resume, Continue setup or Repair, Change jobs at a time, Logs on demand and Uninstall (asks; running jobs end unpaid). - A runtime without the `sandbox` capability gets one line instead. - The preview's `&sandbox=` states, a simulated setup with an approval code, and pause, resume and uninstall. `SandboxSetupProgress` gains an optional `exit_status`; without it the page reads the CLI's last line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te` as the runtime sends it In a narrow window the account key field wraps under its label and fills the line instead of squeezing beside it. `Snapshot.local.route` is documented as the runtime sends it, the route that applies (`LocalSettings.resolvedRoute`); the app resolves a null the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`darkbloom waitlist` asks with this Mac's link token, but `account_revision` follows a signed-in account first, so linking from Early access could leave the "link this Mac" answer on screen until the next 30-second tick, now under a linked Mac's wording. Whose answer a read is now includes whether this Mac is linked: linking or unlinking reads again and shows the list loading meanwhile, never the other state's answer. Before the runtime's first snapshot the hook says `loading`, not `unsupported`, and reads nothing. A single card's problem row is labelled "Waitlist". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… disks as the runtime takes them The runtime takes a work disk only as an absolute path that stays one argument (no `~`, `..`, control or format characters), so the setup form now asks for exactly that, and no longer offers keeping the internal disk too (`--disk ~`), which the runtime refuses. Tests cover the preview's `&sandbox=` states, the `sandbox` capability it adds (keeping Autopilot and the eligibility waitlist), the simulated setup through the approval to ready, with `wait_ready`, Cancel, and the failures by exit status, pause, resume and uninstall; the approval link and console allowlist (`approvalURL`); and the page reached from the sidebar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n; the preview drops listed capabilities
Me first's "Saved. Restart serving to apply." goes once a new serving session
has started, however it was restarted. The model list's hint says what to do
("Choose a model to serve."), which also holds when only models the network
can't serve are serving. `&local=unsupported` now drops `local_serving`,
`tool_setup`, `update_rollback` and `Snapshot.local` from a snapshot that
lists them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The developer guide's Sandboxes section says what the page reads, when it offers setup, how it follows and explains a setup, what each control sends and which preview queries show each state; the changelog fragment says what the app gained. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e does The shared waitlists read kept the last answer across pages. Every other page (`useResource`) starts from loading when it opens, and the Clusters and Sandboxes pages were written against that, so a page now starts from loading and reads; on the page, a new resource clock, a visible window and Try again still keep the last answer on screen while they read. The reset runs before paint, so a new page never shows the previous page's answer for a frame. The "link this Mac" row uses the accent tone of a next step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The minutes field is named "Back after minutes" from the words beside it and described by its hint, so the name a speech user says is the one on screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before the first choice, Both, me first is preselected as in the start question; the line beside Apply now starts "No choice is saved yet." so the preselection isn't read as the saved choice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…network included local-first.md's "The app's choices are saved too" now says what Studio does: it asks the start question with the saved choice marked, and Apply starts and saves Only me, Darkbloom network (`--network`) or Both, me first (`--local-endpoint`) with the models serving now; an older CLI keeps "Alongside the network" and "Local only". The pending note for a Darkbloom network choice in the app (LS-7) is resolved. direct-mode.md names Studio's Both, me first and its me first switch beside the older words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and hook Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`darkbloom cluster --app-console` and `darkbloom cluster local --app-console` run the same onboarding, operations, waitlist gate and console lock without a terminal: `ClusterOnboardingAppConsole` writes one JSON event per line (banner, heading, say with its stressed part, working, settle, progress, result, needs_terminal, question, exit) and reads one JSON answer per line (a choice, a key, or a cancel that answers as q and escape do). Standard input then reads /dev/null and standard output goes to standard error, so nothing else on the path (sudo, `darkbloom login`, a stray print) reads an answer or writes into the events. The flow now says which keys each wait acts on (`key(milliseconds:taking:)`, default unchanged for the terminal): q cancels the pairing's wait and the wait for Allow, q leaves the start's and the followed start's waits, and a copy or the pairing's last confirmation takes none, so the app offers a key only where the flow honours it. The waitlist gate's question is a list on the app's console; Local Network's prompt names Darkbloom there, and Log in on this Mac reads the login the app's own sign-in made. Checks: the leader and member from scratch, cancel and q in the pairing's wait, cancel at a list, stale and invalid answers, the input's end, a copy with no key, sudo's needs_terminal, the Allow wait, and each event's exact line (ClusterOnboardingChecks, 2015 passed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t stops A screen reader hears each new stage of a running setup and the approval once, not each download percent. After Cancel, the runtime takes the button away and says "Cancelling…" until the CLI has stopped its installer; the page shows that too. The setup output under Details has a name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Feature previews add their own capability to the list. Without a base, the first one to create it dropped Autopilot and the eligibility sign-up, which an absent list allowed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preview's approval link and console point at a reserved host that never resolves, so clicking Open approval page or Open console in the development preview can't reach the real sandbox service with a fixture code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…routes, tools and rollback Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…top-catchup/sandboxes-ui
…s, run it Clusters now does the whole job: - Not paired: two Macs joined by a cable, what a pair needs in three words each, the account's standing on the cluster waitlist, **Set up a pair** (once the waitlist is open) and **Serve on my own Macs only** (no approval). - The guided setup (`darkbloom cluster` with the app's controls): the CLI's own transcript, step by step with a 2 of 4 meter; finished steps fold to their title; live work shows one row per Mac with its own spinner, a copy or download a bar when it reports a percentage; ✓/✗ outcome cards; steps that need Terminal with their command to copy. Questions are the app's own controls: an arrow-key list of option cards (Enter takes, the default starts selected, split markers such as "tensor parallel" as tags) and key buttons. The pairing code is large and its question obvious. Cancel asks first while a pairing is in progress. A running session comes back when the page opens. - Paired: both Macs (who leads, whether the other answers), the model with its mode and split as a bar, how it serves, the state with the runtime's reason and next step verbatim, the cluster service, and Start, Stop and Restart serving for the pair, Change model or how it serves on the Mac that leads, Serve this Mac alone and Leave the pair after a confirm (the CLI's own words for leaving). - Older runtimes: no `cluster` capability says it needs a newer CLI; no `cluster_session` points to Terminal with the commands to copy. - This Mac's overview shows the pair in one line when `Snapshot.pair` is set. The development preview has every state (`&cluster=…`, `&cluster-role=member`) and a scripted setup in the CLI's words that answers advance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t and Early access Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing) into cluster-ui Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…helpers `ClusterSessionRelay` (main/clusterSession.ts) repeated `HardwareWatch`'s frame parsing and its abortable reconnect wait word for word. Both now use sse.ts: `eventPayload(frame, name, accept)` reads one named frame's JSON when its guard (`isHardwareSample`, `isClusterSession`) takes it, and `sleep` waits before a stream opens again. `hardwareFrame` and `sessionFrame` keep their names and results; every session the renderer gets is still checked by `isClusterSession`. The developer guide's main-process table names the new helpers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pageResources: the arm for Chat, Clusters, Sandboxes and Early access returned what `default` returns; its comment now sits on `default` and says how each of those pages reads what it shows. - preview/cluster.ts: `resetPreviewPair` said it was for tests, but no test uses it (they reset the module instead). - preview/waitlists.ts: a join's message dates the entry with the page's own `day` (features/waitlists/words.ts) instead of a copy of it. No change in what the app or the preview shows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nswers each in one place - The drain timer after the child exits ran `outputEnded`'s body inline; it calls `outputEnded`. - `start` builds the new session, launches its child, then sets it, instead of setting it first and force-unwrapping it back; the child's callbacks wait for the lock either way. - Closing the child's answers is `closeAnswers()` in `start`, `finishIfEnded` and `deinit`. A new test covers the session whose child can't be started (failed at once, holding nothing); it passes before and after this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clusters, Sandboxes and Chat each defined `.srOnly` in their CSS module (two identical, one a variant). The text they hide from sight (step and requirement states, "You:", ", answering", Chat's page heading, the setup's live stage) now uses one global `sr-only` utility in styles/components.css, beside the app's other shared classes. Nothing changes on screen or for screen readers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Chat page component held the model list's read inline: its request numbering, the list kept from the last visit, the "didn't answer" fallback and the read again when the local API starts, stops or changes what it serves. That is now `useChatModels(endpoint)` beside the page in Chat.tsx, so the page component is the layout, its choices and its states. Same reads, same words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PairStatus held the dialog's chosen models as page state and reset them from the button that opened it. `ServeAloneDialog` now owns that choice (the first model chosen when it opens), as Sandboxes' dialogs own theirs, and PairStatus only says which dialog is open and what serving alone does. Same words, same controls, same actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ipc.ts reset the hardware, chat and cluster setup relays in two places, when the window navigates and when its renderer goes, so a new relay had to be added to both. One `resetRelays` now serves both events. Same resets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e way
`readClusterStatus` and `readSandboxStatus` each ran `runReportingErrors` and built the same
three failures ("didn't answer within N s.", "couldn't run: …", "printed no status (exit N).").
`DesktopBackend.readStatus` and `noStatusReason` now do it once, beside the shared reads they
serve, with `jsonObject`; each resource keeps only its parse and its unavailable shape. The
sandbox log read names its 15 s bound once (`sandboxLogsTimeout`) and its failures one per catch.
`DesktopText` moves to its own file, verbatim.
Every message is unchanged; a new test pins the sandbox status read that can't run, and the
cluster one now checks the whole sentence. Both pass before and after.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…runChild` `execute` assigned `(code, output)` from a three-way if/else (Autopilot, Darkbloom Sandbox setup, every other child). That choice is now `runChild`, a switch on the action, so `execute` reads as its steps: arguments, runtime support, worker, child, completion. The sandbox setup's worker names only its longer grace; the others keep `DesktopWorker`'s default instead of restating it. Order, cancellation, progress and `route_key`'s scrubbing are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p relays Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd `cluster local` Both commands declared the flag with the same long help string; it is now `Cluster.Setup.appConsoleHelp`, beside the app onboarding it starts, so the two can't drift. The text is unchanged. Two doc comments there now say what the code does: the session type is `DesktopClusterSessions`, and the waitlist question lists Yes and No with No selected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arkbloom/Sandbox It was the one file there with two-space indentation; it now uses four, and its longest line is wrapped. Whitespace only (`git diff -w` shows the wrap alone). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a guard clause `waitlistsProblem` added a period between the CLI's lines through a ternary over a negated optional-map default. A guard now says the rule: every line but the last that doesn't end its sentence gets a period. The words are unchanged (the four `noListSays…` cases cover them). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…topWorkerTests.writeScript` The cluster/sandbox resource, route key and sandbox setup tests each wrote a `#!/bin/sh` script and made it executable by hand; they now use the helper the cluster session tests already use. The scripts' commands are unchanged (the route key script gains a final newline). The Perl stand-in for `sandbox setup` keeps its own interpreter line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…inted, and the setup end to end - `scripts/test-desktop-cluster-session.py` drives the guided setup through the real desktop API: it runs this build's own `cluster --app-console` in a home of its own against a coordinator that never approves clusters, so the real onboarding stops at its waitlist question before its operations exist. It checks the question, No, Yes (a join), a cancel, one session at a time, the mutation slot and the event stream, and records the streamed sessions. - `tests/clusterSessionReplay.test.tsx` replays those recorded sessions in the page and checks that its answer is the one the real API took. - `tests/clusterLiveStatus.test.tsx` renders `cluster status --json` as a live pair serving in tensor parallel printed it (this Mac's name replaced). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… lines one way The console's answer reader and the desktop session's reader of the child's output were the same bounded line splitter, written twice: each line as it arrives, and a line over the bound dropped whole through its line break, so no reader gets part of a JSON object. `ClusterOnboardingAppConsole.readLines` is now that framing, in the console's own file (the model-free onboarding checks compile it standalone); the session reads its child with it. Each end keeps its bound, read size and end: the console drops an answer its input ended in the middle of, the session hands on its child's unterminated last line. A new test pins the framing (whole lines, an overlong line dropped with its continuation, the unterminated rest, a dropped rest). `progressSent`'s comment now says what it holds: when the last progress line was sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r the cluster setup session The session's 16 KiB JSON bodies are the actions' (`DesktopHTTP.jsonBody`), and its child's environment is every child's (`DesktopWorker.childEnvironment`); the reference now cites both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the latest release The `?preview` dev server showed a fixed model list in Chat and release 0.9.16 in Updates. It now shows what a real Mac sees: - Chat lists models by the saved route: This Mac's models, then Your Macs', then (Both, me first) the network's public list from /v1/models/catalog and /v1/models/capacity. As on the coordinator, aliases come first and hide the builds they cover. `&route=` sets the route. - Updates reads /v1/releases/latest. The preview Macs run that version, the minimum is production's 0.9.5, and a rollback names the release before the installed one. - The Vite dev server proxies those keyless endpoints same-origin. Without the network, and under tests, the fixtures answer. A production build leaves the preview out: the release read and the chat API start on first use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 13, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Darkbloom for Mac catches up with the CLI. The app gains Chat, Clusters, Sandboxes and Early access pages. Studio now serves the CLI's way: Only me, Darkbloom network, or Both, me first, plus request routing, tool setup and rollback. The CLI's desktop API adds the resources and actions behind those pages and lists them in
capabilities. The app opens a page only when the CLI lists its capability. That is why, against CLI 0.10.11 (today's release), every new page says it needs a newer Darkbloom CLI.DesktopSnapshot.snapshotCapabilities(paired:) ["account-signin", "account-signout", "request-history"] + (paired ? [] : ["autopilot"]) + + ["cluster", "sandbox", "waitlists", "local_serving", "tool_setup", "update_rollback", "cluster_session"]The nine branches, each already merged here with its own merge commit:
Evidence
e9b0ab51on a Mac running CLI 0.10.11. Clusters showedClusters need a newer Darkbloom CLI., because 0.10.11's snapshot lists onlyaccount-signin, account-signout, request-history, autopilot.After: with this branch's CLI, the snapshot lists the seven capabilities above. Tests show this; it has not been tried on a real Mac yet.
test(desktop-api): the merged runtime lists the guided cluster setup's capability tooDesktopClusterSandboxResourcesTests,DesktopClusterSessionTests,DesktopNewActionsTeststest(desktop, cluster): the Clusters page on what the real runtime printed, and the setup end to end9eda8e46:npm run lintclean;npm test133 files and 1,091 tests passed;npm run buildpassed (tsc, vite and the main process).DARKBLOOM_RELEASE_ENVIRONMENT=prodasprovider-tests.ymlbuilds it:swift build --build-tests: every target and test target built with 0 errors.swift test --filter 'DarkbloomCLITests\.Desktop': 136 tests in 25 suites passed.Tests/ClusterOnboardingChecks/run.sh: 2,025 passed, 0 failed.Tests/ClusterConsoleChecks/run.sh: 79,396 expectations in 41 groups passed.Tests/ClusterPairingChecks/run.sh: 274 checks passed, 0 failed.darkbloom-dev), and 15 tests that expect the production names fail as expected.release-desktop.ymldry run ofe9b0ab51(run 42704620274). Developer ID (SLDQ2GJ6TL), notarized, stapled; Gatekeeper accepts it as "Notarized Developer ID". Nothing was published.Merge Danger
Door: two-way. This lands as one merge commit on
dev; reverting it removes the pages and the API additions together. The 0.1.0 app keeps working with this CLI: the action list is a superset of what 0.1.0 sends,startwithendpointstill maps to--local-endpoint, and the existing/control/v1routes are unchanged./control/v1/cluster/sessionis the only new route.Blast Radius: desktop-api
desktop-v*tag), not with this merge.cluster --app-console,cluster local --app-consoleandsandbox setup --json-events.darkbloom sandbox setupnow shows the installer's lines as they arrive; it used to wait for 16 KiB blocks. These ship with the next provider release cut fromdev, and with the DevNet provider that everydevpush publishes.dev0f11fbe01awithout this PR. Landing this first movesdevunder that plan.Linked issue
None.
Test plan
npm run lint,npm testandnpm run buildindesktop-app/on9eda8e46make changelog-check: 74 valid fragmentsDARKBLOOM_RELEASE_ENVIRONMENT=prod swift build --build-testson the merged head, thenswift test --filter 'DarkbloomCLITests\.Desktop': 136 tests passedprovider-swift/Tests/ClusterOnboardingChecks/run.sh: 2,025 passedprovider-swift/Tests/ClusterConsoleChecks/run.sh: 79,396 expectations in 41 groups passedprovider-swift/Tests/ClusterPairingChecks/run.sh: 274 checks passed, 0 failede9b0ab51installed on a Mac with CLI 0.10.11: the new pages show the needs-a-newer-CLI line, as designed9eda8e46: 27 passed and 0 failed, across provider unit tests (2 shards), cluster runtime (5), cluster focused (2) and cluster GPU (3); 2 dispatch-only jobs skippeddev)Components touched
cluster,cluster local,sandbox setup,waitlistProtocol / interface changes
No protocol/interface changes
Yes. The desktop API (
darkbloom desktopand the local API's/control/v1) adds:cluster,sandbox,sandbox-logsandwaitlistslocalin the snapshotnetwork/solostarts,cluster_leave,waitlist_join,sandbox_*,route,route_key,local_settings,tool_setupandupdate_rollbackPOST /control/v1/cluster/sessionThe app gates each new page on its capability.
release-swift.yml,scripts/install.shandProviderCore.versionare unchanged, and nothing is bumped.Documentation impact
docs/reference/desktop-control.mddocs/developer/desktop-app.mddocs/provider/cli-reference.mddocs/provider/direct-mode.mddocs/provider/local-first.mddocs/architecture/inference.mdChangelog
make changelog-check:desktop-api-catch-up,desktop-chat,desktop-cluster-setup-session,desktop-clusters,desktop-early-access,desktop-local-servinganddesktop-sandboxes.Notes for reviewers
devis0f11fbe01a, observed 2026-11-10 03:4x UTC, and merged in with no conflicts. The submodule pins equaldev's:libs/mlx-swiftc633d221,libs/mlx-swift-lm67110e7bandlibs/mlx72dffa2d.ClusterOnboardingFlow.swiftandOnboardingChecks.swiftshared/contracts.tsand the desktop docsdocs/architecture/inference.mdanddocs/provider/cli-reference.mdnpm run devand?preview, the preview reads the coordinator's public, keyless endpoints through the Vite proxy: the catalog, capacity, latest release, stats and leaderboard. Production builds leave the preview out.Before And After
How a page decides what to show:
flowchart LR subgraph Before["Before: CLI 0.10.11 / dev today"] A0["App opens Clusters"] --> B0{"capabilities has cluster?"} B0 -- no --> C0["Clusters need a newer Darkbloom CLI"] end subgraph After["After: this CLI"] A1["App opens Clusters"] --> B1{"capabilities has cluster?"} B1 -- yes --> C1["read cluster: darkbloom cluster status --json"] C1 --> D1["Pair status, Start, Stop, Restart, Leave"] C1 --> E1["Set up a pair: guided setup"] endThe guided setup's code path:
sequenceDiagram participant App as Darkbloom for Mac participant API as darkbloom desktop (local API) participant CLI as darkbloom cluster --app-console App->>API: POST /control/v1/cluster/session API->>CLI: start without a terminal CLI-->>API: the setup's screen as JSON lines API-->>App: relay the screen App->>API: answer (pairing code, model, split, how it serves) API->>CLI: the answer as a JSON line CLI-->>App: ✓ or ✗ card, then the pair's statusRefactor Pass
Both refactor passes are merged here: the app's (
desktop-catchup/refactor-ts,cd2a3e66) and the Swift one (desktop-catchup/refactor-swift,e9b0ab51). Final focused validation is the desktop suite and the Swift build and tests on the merged head, listed above.🤖 Generated with Claude Code